package test;

import ioc.BeanFactory;
import ioc.annotation.Bean;
import web.HttpApp;
import web.HttpService;

import java.util.HashMap;



public class App extends HttpApp {
    HashMap<String,HttpService> map = new HashMap<>();

    @Override
    public String getContext() {
        return "/test";
    }

    @Override
    public void init() {
        map.put("/test/login",new TestService());
    }

    @Override
    public HttpService getHttpService(String s) {
        return map.get(s);
    }
}
